#!/bin/bash
export LANG=zh_CN.UTF-8

# 应用名称
APP_NAME="boot"

# 停止应用
echo "Stopping $APP_NAME..."
PID=$(ps -ef | grep io.geekidea.boot.SpringBootPlusApplication | grep -v grep | awk '{print $2}')
if [ -n "$PID" ]; then
    kill -9 $PID
    echo "$APP_NAME stopped successfully!"
else
    echo "$APP_NAME is not running!"
fi